import httpRequest from "@/utils/request";

const api = {
  getMenu() {
    return httpRequest.post("/api/getMenu").then(data => {
      return data.data;
    });
  },
  getUserToken(payload) {
    return httpRequest.post("/api/getToken", payload).then(data => {
      return data.data;
    });
  },
  getUserInfo(payload) {
    return httpRequest.post("/api/getUserInfo", payload).then(data => {
      return data.data;
    });
  }
};

export default api;
